<include file="Base:common_head" />
<div id="bd" style="position:relative; overflow:visible;">
    <include file="Base:modeleft" />
    <div>
        <if condition="$trade != 0 and $trade != null or $color != 0 and $color != null or $sty != 0 and $sty != null">
            <div class="breadcrumb">
                <span class="title">已选择类型:</span>
                <ul>
                    <li><span><if condition="$trade eq 1">通用<elseif condition="$trade eq 2" />服装配饰<elseif condition="$trade eq 3" />精品鞋包<elseif condition="$trade eq 4" />化妆健美<elseif condition="$trade eq 5" />饰品珠宝<elseif condition="$trade eq 6" />运动户外<elseif condition="$trade eq 7" />家居装饰<elseif condition="$trade eq 8" />数码家电<elseif condition="$trade eq 9" />母婴用品<elseif condition="$trade eq 10" />食品保健<elseif condition="$trade eq 11" />生活兴趣<elseif condition="$trade eq 12" />虚拟充值</if></span>
                        <a <if condition="$trade eq 0 or $trade eq null ">style="display: none";</if> href="__URL__/index/trade/0<if condition='$farmwork != null'>/farmwork/{$farmwork}</if><if condition='$color != null'>/color/{$color}</if><if condition='$sty != null'>/sty/{$sty}</if><if condition='$sort != null'>/sort/{$sort}</if><if condition='$rate != null'>/rate/{$rate}</if>"></a>
                    </li>


                    <li><span><if condition="$color eq 1">红色<elseif condition="$color eq 2" />蓝色<elseif condition="$color eq 3" />绿色<elseif condition="$color eq 4" />橙色<elseif condition="$color eq 5" />粉色<elseif condition="$color eq 6" />黑色<elseif condition="$color eq 7" />黑白色<elseif condition="$color eq 8" />选彩色</if></span>
                        <a <if condition="$color eq 0 or $color eq null ">style="display: none";</if> href="__URL__/index/color/0<if condition='$farmwork != null'>/farmwork/{$farmwork}</if><if condition='$trade != null'>/trade/{$trade}</if><if condition='$sty != null'>/sty/{$sty}</if>"<if condition='$sort != null'>/sort/{$sort}</if>></a>
                    </li>

                    <li><span><if condition="$sty eq 1">时尚<elseif condition="$sty eq 2" />简约<elseif condition="$sty eq 3" />古典<elseif condition="$sty eq 4" />非主流<elseif condition="$sty eq 5" />酷炫<elseif condition="$sty eq 6" />可爱<elseif condition="$sty eq 7" />节日庆典</if></span>
                        <a <if condition="$sty eq 0 or $sty eq null ">style="display: none";</if> href="__URL__/index/sty/0<if condition='$farmwork != null'>/farmwork/{$farmwork}</if><if condition='$trade != null'>/trade/{$trade}</if><if condition='$color != null'>/color/{$color}</if><if condition='$sort != null'>/sort/{$sort}</if><if condition='$rate != null'>/rate/{$rate}</if>"></a>
                    </li>
                </ul>
            </div>
        </if>
        <div class="wrapper">
            <ul class="filter-order">
                <li class="order">
                    <span class="select-term"><if condition="$sort eq 1">价格从低到高
                            <elseif condition="$sort eq 2" />价格从高到低
                            <elseif condition="$sort eq 3" />时间从新到旧
                            <elseif condition="$sort eq 4" />销量从高到低
                            <elseif condition="$sort eq 5" />销量从高到低
                            <elseif condition="$sort eq 7" />价格从高到低
                            <elseif condition="$sort eq 8" />价格从低到高
                            <else />默认排序
                        </if></span>
                    <span class="select-btn" onclick="lidi()"></span>
                    <ul class="item-term" id="item-t">
                        <li><a href="__URL__/index/sort/0<if condition='$sty != null'>/sty/{$sty}</if><if condition='$farmwork != null'>/farmwork/{$farmwork}</if><if condition='$trade != null'>/trade/{$trade}</if><if condition='$color != null'>/color/{$color}</if>">默认排序</a></li>
                        <li><a href="__URL__/index/sort/1<if condition='$sty != null'>/sty/{$sty}</if><if condition='$farmwork != null'>/farmwork/{$farmwork}</if><if condition='$trade != null'>/trade/{$trade}</if><if condition='$color != null'>/color/{$color}</if>">价格从低到高</a></li>
                        <li><a href="__URL__/index/sort/2<if condition='$sty != null'>/sty/{$sty}</if><if condition='$farmwork != null'>/farmwork/{$farmwork}</if><if condition='$trade != null'>/trade/{$trade}</if><if condition='$color != null'>/color/{$color}</if>">价格从高到低</a></li>
                        <li><a href="__URL__/index/sort/3<if condition='$sty != null'>/sty/{$sty}</if><if condition='$farmwork != null'>/farmwork/{$farmwork}</if><if condition='$trade != null'>/trade/{$trade}</if><if condition='$color != null'>/color/{$color}</if>">时间从新到旧</a></li>
                        <li><a href="__URL__/index/sort/4<if condition='$sty != null'>/sty/{$sty}</if><if condition='$farmwork != null'>/farmwork/{$farmwork}</if><if condition='$trade != null'>/trade/{$trade}</if><if condition='$color != null'>/color/{$color}</if>">销量从高到低</a></li>
                    </ul>
                </li>
                <li class="down way">
                    <a href="__URL__/index/sort/5<if condition='$sty != null'>/sty/{$sty}</if><if condition='$farmwork != null'>/farmwork/{$farmwork}</if><if condition='$trade != null'>/trade/{$trade}</if><if condition='$color != null'>/color/{$color}</if>">销量</a>
                </li>
                <li class="way down">
                <if condition="$sort neq 7">
                    <a class="t1" <if condition="$sort neq 7">style="display: block;"</if> href="__URL__/index/sort/7<if condition='$sty != null'>/sty/{$sty}</if><if condition='$farmwork != null'>/farmwork/{$farmwork}</if><if condition='$trade != null'>/trade/{$trade}</if><if condition='$color != null'>/color/{$color}</if>">价格</a>
                </if>
                <if condition="$sort eq 7">
                    <a class="b1" <if condition="$sort eq 7">style="display: block;"</if> href="__URL__/index/sort/8<if condition='$sty != null'>/sty/{$sty}</if><if condition='$farmwork != null'>/farmwork/{$farmwork}</if><if condition='$trade != null'>/trade/{$trade}</if><if condition='$color != null'>/color/{$color}</if>">价格</a>
                </if>
                </li>
            </ul>
        </div>
        <div class="temps">
            <notempty name="temps">
                <volist name="temps" id="v">
                    <div class="temp-item">
                        <div class="pic">
                            <a href="__URL__/detail/id/{$v.id}"><img src="{$v.frontpage}" /></a>
                        </div>
                        <div class="title"><a href="__URL__/index/id/{$v.id}">{$v.title}</a></div>
                        <div class="price"><span class="site">本站价：
                                <if condition="$v.rate eq 1">
                                    <b>免费</b>	
                                    <else/>
                                    {$v[price]*(1-$v['rate'])}元
                                </if>
                            </span><span class="tao">市场价{$v.price}元</span></div>
                    </div>	
                </volist>
                <div style="height:10px; clear:both;"></div>	
                {$page}
                <else/>
                <div class="notemps">没有找到指定条件的模板</div>
            </notempty>
        </div>
    </div>
</div>
</body>
<script type="text/javascript">
    function lidi(){
        var di = $("#item-t").css("display");
        if(di == 'none'){
            $("#item-t").show();
        }else{
            $("#item-t").hide();
        }
    }
    function sort(sort,dom){
        var so = $(dom).html();
        if(sort == 5){
            $(".select-term").html("销量从高到低");
        }else if(sort ==7){
            $(dom).hide();
            $(".b1").show();
            $(".select-term").html("价格从高到低");
        }else if(sort ==8){
            $(dom).hide();
            $(".t1").show();
            $(".select-term").html("价格从低到高");
        }else if(sort ==9){
            $(dom).hide();
            $(".s2").show();
        }else if(sort ==10){
            $(dom).hide();
            $(".s1").show();
        }else{
            $(".select-term").html(so);
        }
        $("#item-t").hide();
        $.get('__URL__/index/sort/'+sort+'/farmwork/'+'{$farmwork}'+'/trade/'+'{$trade}'+'/color/'+'{$color}'+'/sty/'+'{$sty}',function(){
            location.reload();
        });
    }
    
</script>
</html>
